/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package PasoVariables;

import java.awt.Dimension;

/**
 *
 * @author Ibon
 */
public class Principal {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Dimension d = new Dimension(5, 10);
        Principal rt = new Principal();
        System.out.println("Before modify() d.height = "
                + d.height);
        rt.modify(d);
        System.out.println("After modify() d.height = "
        d.height
  )
   void modify(Dimension dim) {
        dim.height = dim.height + 1;
        System.out.println("dim = " + dim.height);
        }
   //Passing Object Reference Variables
    }
}
